/*
 * ServerAlive.h
 *
 *  Created on: 08.12.2011
 *      Author: Pavel Sinay
 */

#ifndef SERVERALIVE_H_
#define SERVERALIVE_H_

#include "../impl/ClientAcceptor.h"

namespace net {

class ServerAlive: public ClientAcceptor {
public:
	ServerAlive();
	virtual ~ServerAlive();

	std::vector<char> send(std::vector<char> tx_message);
	bool isClientPresented();

private:
	Socket *m_client_socket;

	void onClientAccepted(Socket *client_socket);
};

}

#endif /* SERVERALIVE_H_ */
